package com.example.pushup;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.AlertDialog;
import android.content.DialogInterface;


public class MainActivity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		Button pushBt= (Button)findViewById(R.id.pushUpButton);
		pushBt.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				
				AlertDialog.Builder dlg = null;
				dlg = new AlertDialog.Builder( MainActivity.this );
				dlg.setMessage("(동작 그림 넣을거)");
				dlg.setTitle( "PushUp" );
				
				dlg.setPositiveButton("확인", new DialogInterface.OnClickListener() {
					
					@Override
					public void onClick(DialogInterface dialog, int which) {
						
						Intent intent= new Intent(MainActivity.this, MenuActivity.class);
						startActivity(intent);
					}
				});
				
				dlg.show(); 				
				
				
			}
		});
		
		Button sitBt= (Button)findViewById(R.id.sitUpButton);
		sitBt.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				
				AlertDialog.Builder dlg = null;
				dlg = new AlertDialog.Builder( MainActivity.this );
				dlg.setMessage("(동작 그림 넣을거)");
				dlg.setTitle( "SitUp" );
				
				dlg.setPositiveButton("확인", new DialogInterface.OnClickListener() {
					
					@Override
					public void onClick(DialogInterface dialog, int which) {
						
						Intent intent= new Intent(MainActivity.this, MenuActivity.class);
						startActivity(intent);
					}
				});
				
				dlg.show(); 		
				
			}
		});
	}
		

}
